
import {IsNotEmpty} from "class-validator";
import {ApiProperty} from "@nestjs/swagger";

/**
 * 登录表单
 */
export class LoginDTO {
    @ApiProperty({description: '账号', required: true})
    @IsNotEmpty({message: '账号不能为空!'})
    username: string;

    @ApiProperty({description: '密码', required: true})
    @IsNotEmpty({message: '密码不能为空!'})
    password: string;
}
